﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NetworkPower.Data.Models.Mapping
{
    public class CableInventoryMap : EntityTypeConfiguration<CableInventory>
    {
        public CableInventoryMap()
        {
            // Primary Key
            this.HasKey(t => new { t.CableInventoryId });
            // Table & Column Mappings
            this.ToTable("CableInventorys");
            this.Property(t => t.InstallCompany).HasColumnName("InstallCompany");
            this.Property(t => t.CableUniqueNumber).HasColumnName("CableUniqueNumber");
            this.Property(t => t.CableType).HasColumnName("CableType");
            this.Property(t => t.BackUpCore).HasColumnName("BackUpCore");
            this.Property(t => t.Start).HasColumnName("Start");
            this.Property(t => t.End).HasColumnName("End");
            this.Property(t => t.LineLength).HasColumnName("LineLength");
            this.Property(t => t.Memo).HasColumnName("Memo");
        }
    }
}
